package com.unrarme.api.antigate
{
	import flash.events.Event;
	
	public class AntigateEvent extends Event
	{
		public static const SENT_OK:String 								= 'sent_ok';
		public static const SENT_ERROR:String 							= 'sent_error';
		
		public static const SENT_ERROR_KEY_DOES_NOT_EXIST:String 		= 'sent_error_key_does_not_exist';
		public static const SENT_ERROR_NO_SLOT_AVAILABLE:String 		= 'sent_error_no_slot_available';
		public static const SENT_ERROR_ZERO_CAPTCHA_FILESIZE:String 	= 'sent_error_zero_captcha_filesize';
		public static const SENT_ERROR_TOO_BIG_CAPTCHA_FILESIZE:String 	= 'sent_error_too_big_captcha_filesize';
		public static const SENT_ERROR_WRONG_FILE_EXTENSION:String 		= 'sent_error_wrong_file_extension';
		public static const SENT_ERROR_IP_NOT_ALLOWED:String 			= 'sent_error_ip_not_allowed';
		
		
		public static const RESPONSE_OK:String 							= 'response_ok';
		public static const RESPONSE_ERROR:String 						= 'response_error';
		
		public static const RESPONSE_ERROR_KEY_DOES_NOT_EXIST:String 	= 'response_error_key_does_not_exist';
		public static const RESPONSE_ERROR_WRONG_ID_FORMAT:String 		= 'response_error_wrong_id_format';
		public static const RESPONSE_ERROR_NO_SUCH_CAPCHA_ID:String 	= 'response_error_no_such_captcha_id';
		public static const RESPONSE_ERROR_URL_METHOD_FORBIDDEN:String 	= 'response_error_url_method_forbidden';
		public static const RESPONSE_CAPCHA_NOT_READY:String 			= 'response_captcha_not_ready';
		public static const RESPONSE_OK_REPORT_RECORDED:String 			= 'response_ok_report_recorded';
		
		
		public var data:*;
		
		public function AntigateEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}